
const myInfo = {
    namespaced: true,
    state: {
       curClass: localStorage.curClass ? JSON.parse(localStorage.curClass) : '',
       identityData: localStorage.identityData ? JSON.parse(localStorage.identityData) : '',
       faceTeacher: localStorage.faceTeacher ? JSON.parse(localStorage.faceTeacher) : '',

       childFace: ''
    },
    getters: {

    },
    mutations: {
        setCurClass(state, val){
            state.curClass = val
            localStorage.curClass = JSON.stringify(val)
        },
        setIdentityData (state, val){
            state.identityData = val
            localStorage.identityData = JSON.stringify(val)
        },
        setFaceTeacher (state, val) {
            state.faceTeacher = val
            localStorage.faceTeacher = JSON.stringify(val)
        }
    },
    actions: { 
    }
}
export default myInfo
